package pathfinding;

import java.io.Serializable;

import ownserver.ServerShip;

import com.sun.sgs.app.ManagedReference;

public class Reservation implements Serializable {
	private static final long serialVersionUID = 1L;
	long start, end;
	ManagedReference<ServerShip> reserver;
	public Reservation(long start, long end, ManagedReference<ServerShip> reserver) {
		this.start = start;
		this.end = end;
		this.reserver = reserver;
	}
	
	public String toString() {
		return start + " -> " + end + " (" + reserver.get() + ")";
	}
}